<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    public function _initRouter(){
	$router = Zend_Controller_Front::getInstance()->getRouter();

	$router->addRoute('indexlist', 
                            new Zend_Controller_Router_Route(
                                'list',
                                array(
                                    'controller' => "index",
                                    'action' => 'list'
                                )
                            )
                );
        $router->addRoute('ListwithUsers', 
                            new Zend_Controller_Router_Route(
                                'list/:users',
                                array(
                                    'controller' => "index",
                                    'action' => 'list'
                                )
                            )
                );
        
//        $router->addRoute('editItem', 
//                            new Zend_Controller_Router_Route(
//                                'edit/:users',
//                                array(
//                                    'controller' => "index",
//                                    'action' => 'list'
//                                )
//                            )
//                );
        
    }
    
    
    public function _initIview(){
		$view = new Zend_View();
		$view->doctype('XHTML1_TRANSITIONAL');
		$view->addHelperPath('App/View/Helper', "App_View_Helper" );
    }
    
    public function _initinclude(){
        require_once 'App/ItemDto.php';
        require_once 'App/forms/ItemEditor.php';

    }

}

